#include <de2D_priv.hpp>
Inheritance diagram for de2DCollection:


Public Member Functions | |
| de2DCollection () | |
| void | SetParent (Ide2DCollection *ParentCollection) |
| const deRect & | GetRect () const |
| Get the rect used for clipping objects. | |
| void | SetRect (deRect &rect) |
| Set the rect used for clipping objects. | |
| void | SetBGColor (deARGB color) |
| Set the background color for this collection. You may specify alpha (0xff = opaque). | |
| deARGB | GetBGColor () |
| Get the background color for this collection. | |
| void | SetEnabled (deBoolean Enable) |
| deBoolean | IsEnabled () const |
| Get the rendering-enabled status of the collection. | |
| void | GetScrollValue (deVec3d &scroll) const |
| Get the X & Y scroll offsets currently being used for this collection. | |
| void | SetScrollValue (const deVec3d &scroll) |
| Set the X & Y scroll offsets for this collection. | |
| deBoolean | AddObject (Ide2DObject *object) |
| deBoolean | RemoveObject (Ide2DObject *object) |
| deBoolean | AdjustObjectDepth (Ide2DObject *object, deFloat Depth) |
| deBoolean | AddSubCollection (Ide2DCollection *collection) |
| deBoolean | RemoveSubCollection (Ide2DCollection *collection) |
| deFloat | GetDepth () const |
| deBoolean | SetDepth (deFloat Depth) |
| deBoolean | Render (IdeDriver *Driver, deDouble DeltaTime, IdeRenderTexture *NullTex, IdeRender::deRenderStats *RenderStats, deBoolean DoOcclusion) |
| void | DestroyAllObjects (deBoolean SubCollectionsAlso) |
Static Public Attributes | |
| IdeVertexBuffer * | s_CompositeFor2D = NULL |
Protected Member Functions | |
| virtual | ~de2DCollection () |
Private Member Functions | |
| deBoolean | AddItem (const de2DObjectUnion &NewItem) |
| deBoolean | Set2DViewport (short FullWidth, short FullHeight, const deRect &SubRect, IdeDriver *pDriver) |
| deBoolean | FillBGColor (IdeDriver *pDriver, const deRect &Rect, const deVec3d &Scroll, deARGB BGColor, IdeRenderTexture *&PrevTexture) |
Private Attributes | |
| deTList< de2DObjectUnion > | m_ChildList |
| deRect | m_ClipRect |
| deVec3d | m_Scroll |
| Ide2DCollection * | m_pParent |
| deFloat | m_Depth |
| deARGB | m_BGColor |
| deBoolean | m_Enabled |
Static Private Attributes | |
| long | s_NumCollections = 0 |
| IdeVertexBuffer * | s_BackdropQuad = NULL |
| IdeRenderTexture * | s_BackdropTexture = NULL |
|
|
|
|
|
|
|
|
|
|
|
Add a 2D object to this collection, so it may be rendered. This method invokes object->Claim() to increment the object's reference count. Implements Ide2DCollection. |
|
|
Add a subordinate 2D collection to this one, so that its contents be rendered inside the extents of this one. This method invokes collection->Claim(). Implements Ide2DCollection. |
|
||||||||||||
|
Adjust the depth value of a 2D object. This method invokes object->SetDepth(Depth). Implements Ide2DCollection. |
|
|
Destroy all the objects, and optionally all the sub-collections, contained by this collection. All destroyed sub-collections will also destroy their own sub-collections. Implements Ide2DCollection. |
|
||||||||||||||||||||||||
|
|
|
|
Get the background color for this collection.
Implements Ide2DCollection. |
|
|
Get the depth value used for sorting this collection into the render order. Note that the depth value is only relative to other objects and collections inside the same collection. Implements Ide2DCollection. |
|
|
Get the rect used for clipping objects.
Implements Ide2DCollection. |
|
|
Get the X & Y scroll offsets currently being used for this collection.
Implements Ide2DCollection. |
|
|
Get the rendering-enabled status of the collection.
Implements Ide2DCollection. |
|
|
Remove a 2D object from this collection. This method invokes object->Release() to decrement the object's reference count, possibly causing destruction. Implements Ide2DCollection. |
|
|
Remove a subordinate 2D collection. This method invokes collection->Release(). Implements Ide2DCollection. |
|
||||||||||||||||||||||||
|
Render all the objects and sub-collections contained by this collection. It is recommended that a user not call this explicitly, instead letting IdeRender handle this task. IdeRender::EndFrame invokes Ide2DCollection::Render for its attached 2d collection. Implements Ide2DCollection. |
|
||||||||||||||||||||
|
|
|
|
Set the background color for this collection. You may specify alpha (0xff = opaque).
Implements Ide2DCollection. |
|
|
Set the depth value used for sorting this collection into the render order. Note that the depth value is only relative to other objects and collections inside the same collection. This method, unlike Ide2DObject::SetDepth, will adjust the rendering order of this collection. Implements Ide2DCollection. |
|
|
Enable or disable a collection from rendering. Can be used in windowing systems to "minimize" the collection. Implements Ide2DCollection. |
|
|
Implements Ide2DCollection. |
|
|
Set the rect used for clipping objects.
Implements Ide2DCollection. |
|
|
Set the X & Y scroll offsets for this collection.
Implements Ide2DCollection. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3-rc3